
#include <Volume.h>

Volume::Volume(int amount, const VolumeUnit* unit):Measurement(amount, unit)
{
}

Volume Volume::operator+(Volume &volume)
{
    int amount = amount_m + volume.amount_m;
    return Volume(amount, BASE_VOLUME_UNIT);
}

void Volume::output(std::ostream& stream, const Unit* unit)
{
    VolumeUnit::output(amount_m, stream, unit);
}

